package com.zhkc.iess.system.service;

import com.zhkc.iess.system.vo.TestVO;
import com.zhkc.wisdom.common.base.model.LoginContextInfo;
import com.zhkc.wisdom.common.cache.annotations.CacheDelete;
import com.zhkc.wisdom.common.cache.annotations.CacheExpire;
import org.springframework.stereotype.Service;

@Service
public class TestService {

    @CacheExpire(generateKey = true, timeout = 1000)
    public LoginContextInfo getTestInfo(TestVO query, String v1) {
        LoginContextInfo model = new LoginContextInfo();
        model.setOrgId(1111L);
        System.out.println("222222222222222222222222222222222222");
        return model;
    }

    @CacheDelete(prefix = "generate_key")
    public LoginContextInfo deleteCache() {
        LoginContextInfo model = new LoginContextInfo();
        model.setOrgId(1111L);
        System.out.println("222222222222222222222222222222222222");
        return model;
    }

}
